package org.nicocube.airain.domain.server.criteria;

import com.db4o.query.Query;

/**
 * Build a basic query constraint for ordering the result of the {@link Query} ascending on a column
 * 
 * @author nicolas
 * @version 0.1
 */
public class AscCriteria extends AbstractCriteria {

	public AscCriteria(String column) {
		super(column);
	}

	@Override
	public void apply(Query q) {
		q.descend(getColumn()).orderAscending();		
	}

}
